package com.wenhai.xiaomage.spring.ioc.overview.dependency.spi;

import com.wenhai.xiaomage.spring.ioc.overview.dependency.spi.service.IUserService;

import java.util.ServiceLoader;

public class SpiDemo {
    public static void main(String[] args) {
        ServiceLoader<IUserService> userServices = ServiceLoader.load(IUserService.class);
        for (IUserService userService : userServices) {
            System.out.println(userService);
        }
    }
}
